package com.utilities;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.*;

public class AjaxUtil {
       public static void out(HttpServletResponse response,String data,String info,int status) {
	   try {
		PrintWriter out=response.getWriter();
		out.print("{\"data\":"+(data.equals("")?"\"\"":data)+",\"info\":\""+info+"\",\"status\":"+status+"}");
	   } catch (IOException e) {
		e.printStackTrace();
	    }
	}
}
